package cuit.cx.groupcomment.model;

import java.util.HashSet;
import java.util.Set;

/**
 * Orders entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Orders implements java.io.Serializable {

	// Fields

	private Integer id;
	private Groupon groupon;
	private Userinfo userinfo;
	private Integer orderCount;
	private Long orderTime;
	private Set serials = new HashSet(0);

	// Constructors

	/** default constructor */
	public Orders() {
	}

	/** minimal constructor */
	public Orders(Groupon groupon, Userinfo userinfo, Integer orderCount,
			Long orderTime) {
		this.groupon = groupon;
		this.userinfo = userinfo;
		this.orderCount = orderCount;
		this.orderTime = orderTime;
	}

	/** full constructor */
	public Orders(Groupon groupon, Userinfo userinfo, Integer orderCount,
			Long orderTime, Set serials) {
		this.groupon = groupon;
		this.userinfo = userinfo;
		this.orderCount = orderCount;
		this.orderTime = orderTime;
		this.serials = serials;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Groupon getGroupon() {
		return this.groupon;
	}

	public void setGroupon(Groupon groupon) {
		this.groupon = groupon;
	}

	public Userinfo getUserinfo() {
		return this.userinfo;
	}

	public void setUserinfo(Userinfo userinfo) {
		this.userinfo = userinfo;
	}

	public Integer getOrderCount() {
		return this.orderCount;
	}

	public void setOrderCount(Integer orderCount) {
		this.orderCount = orderCount;
	}

	public Long getOrderTime() {
		return this.orderTime;
	}

	public void setOrderTime(Long orderTime) {
		this.orderTime = orderTime;
	}

	public Set getSerials() {
		return this.serials;
	}

	public void setSerials(Set serials) {
		this.serials = serials;
	}

}